package cn.sdc.bugKiller.service;

import cn.sdc.bugKiller.bean.MemberBean;
import cn.sdc.bugKiller.dao.CodeDaoImpl;
import cn.sdc.bugKiller.dao.MemberDaoImpl;

public class LoginService {
	
	private static MemberDaoImpl memberDao = new MemberDaoImpl();
	private static CodeDaoImpl codeDao = new CodeDaoImpl();
	
	/**
	 * get member by username for login
	 * @param username
	 * @param password
	 * @return
	 */
	public MemberBean getMemberByUsername(String username){
		if(username == null || username.isEmpty()){
			return null;
		}
		return memberDao.getMemberByUsername(username);
	}
}
